<?
include_once("_common.php");
@include_once("$g4[path]/lib/mw.builder.lib.php");
include_once("$mw_cash[path]/cybercash.lib.php");

$sql = "select * from $mw_cash[account_table] where ac_id = '$ac_id' and mb_id = '$member[mb_id]'";
$row = sql_fetch($sql);
if (!$row)
    alert("자료가 없습니다.");

if ($row[ac_status] != "입금신청")
    alert("입금신청 상태에서만 취소가 가능합니다.");

sql_query("update $mw_cash[account_table] set ac_status = '취소' where ac_id = '$ac_id'");

alert("취소되었습니다.", "account-list.php");
?>
